package com.atguigu.observer.improve;

public class Client {
	public static void main(String[] args) {
		WeatherData weatherData = new WeatherData();
		Observer conditions = new CurrentConditions();
		weatherData.registerObserver(conditions);
		weatherData.registerObserver(new Baidu());
		weatherData.removeObserver(conditions);
		weatherData.setData(40, 150, 30);
	}
}
